Quick Raspi Login

Overview

Action Command
Create key ssh-keygen -t ed25519
Copy key type "%USERPROFILE%\.ssh\id_ed25519.pub" | ssh <user-raspi>@<ip-raspi> "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys && chmod 700 ~/.ssh && chmod 600 ~/.ssh/authorized_keys"
Config .ssh\config code see below
Login ssh <user-raspi>
Host <your-shortcut>
    HostName <ip-raspi>
    User <user-raspi>
    IdentityFile ~/.ssh/id_ed25519
Host <your-shortcut>
    HostName <ip-nanopi>
    User <user-nanopi>
    IdentityFile ~/.ssh/id_ed25519
Host <your-shortcut>
    HostName <hostname-nanopi.local>
    User <user-nanopi>
    IdentityFile ~/.ssh/id_ed25519
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9